#pragma once

#include<iostream>
#include<memory>
#include<string>
#include<cstring>
#include<cerrno>

#include<netinet/in.h>
#include<arpa/inet.h>
#include<sys/types.h>
#include<sys/socket.h>
#include "Log.hpp"

#define DIE(code) do{exit(code);}while(0)

enum{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR
};